<?php

namespace app\admin\service\admin;

use app\admin\model\admin\AdminLink;
use app\admin\service\BaseService;

class LinkService extends BaseService
{
    public function __construct(AdminLink $model)
    {
        $this->model = $model;
    }

    public function getShowList(): array
    {
        $where = [];
        $where[] = ['status', '=', 1];
        return $this->model->where($where)->order('sort','ASC')->order('id','ASC')->select()->toArray();
    }
}